package com.erp.shop.service;

import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.oldPage.TableDataInfo;
import com.ruoyi.gather.api.domain.dto.AutoQueryPriceTemplateInfoDto;
import com.ruoyi.shop.api.domain.ErpSellerStorePromotionActivity;
import com.ruoyi.shop.api.domain.bo.ErpSellerStorePromotionActivityBo;
import com.ruoyi.shop.api.domain.vo.ErpSellerStorePromotionActivityVo;

import java.math.BigDecimal;
import java.util.Collection;
import java.util.List;

/**
 * 商家促销活动Service接口
 *
 * @author erp
 * @date 2023-06-08
 */
public interface IErpSellerStorePromotionActivityService {

    /**
     * 查询商家促销活动
     */
    ErpSellerStorePromotionActivityVo queryById(Long activityId);

    /**
     * 查询商家促销活动列表
     */
    TableDataInfo<ErpSellerStorePromotionActivityVo> queryPageList(ErpSellerStorePromotionActivityBo bo, PageQuery pageQuery);

    /**
     * 查询商家促销活动列表
     */
    List<ErpSellerStorePromotionActivityVo> queryList(ErpSellerStorePromotionActivityBo bo);

    /**
     * 新增商家促销活动
     */
    Boolean insertByBo(ErpSellerStorePromotionActivityBo bo);

    /**
     * 修改商家促销活动
     */
    Boolean updateByBo(ErpSellerStorePromotionActivityBo bo);

    /**
     * 校验并批量删除商家促销活动信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    List<ErpSellerStorePromotionActivity> storeActivityList(Long storeId);

    R<Object> getPromotionActivityInfo(ErpSellerStorePromotionActivity activity);

    R<Object> addProductToActivity(Long productId, Long activityId, BigDecimal discount);

    R<Object> processingProjectGroupAndDiscount(AutoQueryPriceTemplateInfoDto templateInfo);

    R<Object> insertOrUpdate(ErpSellerStorePromotionActivity activity);

    R<Object> selectActivityInfo(ErpSellerStorePromotionActivity activity);
}
